<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head></head>
<body>
    <div th:fragment="header">
        <div class="header">
            <div class="center clear">
                <div class="logo"></div>
                <ul class="navList">
                    <li><a th:href="@{/doLogin}">首页</a></li>
                    <li><a th:href="@{/activity/listPc}">活动</a></li>
                    <li><a th:href="@{/nodeVote/nodeVote}">积分兑换</a></li>
                </ul>
                <div class="login" th:style="'display:' + @{(${user.userName == null} ? 'block' : 'none')} + ''">
                    <a th:if="${null != user.userName}" th:text="${user.userName}"></a>
                    <a th:text="登录" class="loginBtn" th:href="@{/login/}"></a>
                    <span>|</span>
                    <a class="applyBtn" th:href="@{/register/toRegister}" th:text="申请"></a>
                </div>
                <div class="login" th:style="'display:' + @{(${user.userName != null} ? 'block' : 'none')} + ''">
                    <div class="head-box"><img th:src="@{/img/head.png}"/></div>
                    <div class="head-nav">
                        <ul>
                            <li><a th:href="@{/userBaseMsg/userBaseMsg}">基本信息</a></li>
                            <li><a th:href="@{/userAsset/userAsset}">我的活动</a></li>
                            <li><a th:href="@{/nodeVote/nodeVote}">我的订单</a></li>
                            <li><a th:href="@{/nodeVote/nodeVote}">我的荣誉</a></li>
                            <li><a th:href="@{/logout}">退出</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>
</html>
